package demo2;

/**
 * @Author 12629
 * @Description：
 */
public class Test {
    public static void func(IShape iShape) {
        iShape.draw();
    }
    public static void main(String[] args) {
        //IShape iShape = new IShape();
        IShape iShape1 = new Rect();
        IShape iShape2 = new Cycle();
        func(iShape1);
        func(iShape2);
    }
}
